﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace GameDev_Story.Cenas
{
    public class Cena_Creditos
    {
        Texture2D fundo;        
        GameWindow Window;
        public Vector2 posicao = new Vector2(0, 0);
        public uint velocidade = 1;

        public Cena_Creditos(ContentManager Content, GameWindow Window)
        {
            this.Window = Window;            
            fundo = Content.Load<Texture2D>("creditos");            
        }

        public void Update(GameTime gameTime)
        {
            posicao.Y -= velocidade;

            if (posicao.Y == -327)
            {
                velocidade *= 0;
            }
        }

        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(fundo, posicao, Color.White);            
        }
    }
}
